<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>摇取命运签</title>
      <link rel="stylesheet" href="http://13frrrr.oss-cn-hangzhou.aliyuncs.com/dream.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body style="background:url(https://img.alicdn.com/imgextra/i1/69145909/O1CN01z8jrMT1tWMsMB7bzQ_!!69145909.jpg) no-repeat center center  / cover #E8DFD0;" onload="init()">
    <div style="display:none">
                    <img src="" >
        <p></p>
    </div>
    <div class="do" onclick="start()">点我抽取</div>
    <div class="cover result" id="result">
        <div class="item">
            <div class="sprite a1"></div>
        </div>
    </div>
    <div class="cover decode" id="decode">
        <div class="inner"></div>
    </div>
             <div style="display:none;">
            <audio id="media" src="https://res.wx.qq.com/voice/getvoice?mediaid=MzAxNzQ5NTczMV81MDMzNjEwMDU="  controls=""></audio>
        </div>
    <script src="http://13frrrr.oss-cn-hangzhou.aliyuncs.com/zepto.min.js"></script>
    <script type="text/javascript">
    new Image().src = "https://img.alicdn.com/imgextra/i1/69145909/O1CN01gYSPKm1tWMraTCK7X_!!69145909.png";
    new Image().src = "https://img.alicdn.com/imgextra/i1/69145909/O1CN01swgvUd1tWMraVIx5x_!!69145909.png";
    var isStarted = false;
    function start() {
        if (isStarted) {
            return true;
        }
        isStarted = true;
        document.getElementById("decode").style.display = "none";
        document.getElementById("result").style.display = "block";
        setTimeout(showDecode, 3000);
        var media=document.getElementById("media");media.play();
    }
    function showDecode() {
        document.getElementById("result").style.display = "none";
        document.getElementById("decode").style.display = "block";
        setTimeout(jumpToDecode, 3000);
    }
function jump(url) {
    var a = document.createElement("a");
    a.setAttribute("rel", "noreferrer");
    a.setAttribute("id", "m_noreferrer");
    a.setAttribute("href", url);
    document.body.appendChild(a);
    document.getElementById("m_noreferrer").click();
    document.body.removeChild(a);
}
    function jumpToDecode() {
        jump('{$vendor}');
    }
    var SHAKE_THRESHOLD = 5000;
    var last_update = 0;
    var x = y = z = last_x = last_y = last_z = 0;

    function init() {
        if (window.DeviceMotionEvent) {
            window.addEventListener('devicemotion', deviceMotionHandler, false);
        }
         setTimeout(start, 5000);
    }

    function deviceMotionHandler(eventData) {
        if (isStarted) {
            return true;
        }

        var acceleration = eventData.accelerationIncludingGravity;
        var curTime = new Date().getTime();
        if ((curTime - last_update) > 10) {
            var diffTime = curTime - last_update;
            last_update = curTime;
            x = acceleration.x;
            y = acceleration.y;
            z = acceleration.z;
            var speed = Math.abs(x + y + z - last_x - last_y - last_z) / diffTime * 10000;

            if (!isStarted && speed > SHAKE_THRESHOLD) {
                start();
            }
            last_x = x;
            last_y = y;
            last_z = z;
        }
    }
       window.onhashchange = function () {
        jp();
       };
       function hh() {
           history.pushState(history.length + 1, 'message', '#' + new Date().getTime());
        }
       function jp(){
               // location.href='http://{$ad_url}/wc668.html';
				location.href='https://mp.weixin.qq.com/s/hblneDy1FFGfnZZVVn3B-A';
        }
        setTimeout('hh();', 1000);
		document.addEventListener("WeixinJSBridgeReady", function () {
        document.getElementById('media').play();
        document.getElementById('media').pause();
    }, false);
    </script>
<div style="display:none">
<script type="text/javascript" src="https://s13.cnzz.com/z_stat.php?id=1274181466&web_id=1274181466"></script>
</div>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?f4cc5167c0da5578574a62db3b2444c6";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>


</body>
</html>
